home *** CD-ROM | disk | FTP | other *** search
/ nrsys.ke.euroweb.sk / nrsys.ke.euroweb.sk.tar / nrsys.ke.euroweb.sk / incoming / wrarx531.exe / [0] / Rar.txt < prev    next >
Text File  |  2016-01-03  |  101KB  |  2,444 lines

  1.                              User's Manual
  2.                              ~~~~~~~~~~~~~
  3.                         RAR 5.31 console version
  4.                         ~~~~~~~~~~~~~~~~~~~~~~~~
  5.  
  6.                        =-=-=-=-=-=-=-=-=-=-=-=-=-=-
  7.                        Welcome to the RAR Archiver!
  8.                        -=-=-=-=-=-=-=-=-=-=-=-=-=-=
  9.  
  10.  Introduction
  11.  ~~~~~~~~~~~~
  12.  
  13.     RAR is a console application allowing to manage archive files
  14.   in command line mode. RAR provides compression, encryption,
  15.   data recovery and many other functions described in this manual.
  16.  
  17.     RAR supports only RAR format archives, which have .rar file name
  18.   extension by default. ZIP and other formats are not supported.
  19.   Even if you specify .zip extension when creating an archive, it will
  20.   still be in RAR format. Windows users may install WinRAR, which supports
  21.   more archive types including RAR and ZIP formats.
  22.  
  23.     WinRAR provides both graphical user interface and command line mode.
  24.   While console RAR and GUI WinRAR have the similar command line syntax,
  25.   some differences exist. So it is recommended to use this rar.txt manual
  26.   for console RAR (rar.exe in case of Windows version) and winrar.chm
  27.   WinRAR help file for GUI WinRAR (winrar.exe).
  28.  
  29.  
  30.  Configuration file
  31.  ~~~~~~~~~~~~~~~~~~
  32.  
  33.   RAR and UnRAR for Unix read configuration information from .rarrc file
  34.   in a user's home directory (stored in HOME environment variable)
  35.   or in /etc directory.
  36.  
  37.   RAR and UnRAR for Windows read configuration information from rar.ini file,
  38.   placed in the same directory as the rar.exe file.
  39.  
  40.   This file may contain the following string:
  41.  
  42.   switches=<any RAR switches separated by spaces>
  43.  
  44.   For example:
  45.  
  46.   switches=-m5 -s
  47.  
  48.   It is also possible to specify separate switch sets for individual
  49.   RAR commands using the following syntax:
  50.  
  51.   switches_<command>=<any RAR switches separated by spaces>
  52.  
  53.   For example:
  54.  
  55.   switches_a=-m5 -s
  56.   switches_x=-o+
  57.  
  58.  
  59.  
  60.  Environment variable
  61.  ~~~~~~~~~~~~~~~~~~~~
  62.  
  63.     Default parameters may be added to the RAR command line by establishing
  64.     an environment variable "RAR".
  65.  
  66.     For instance, in Unix following lines may be added to your profile:
  67.  
  68.       RAR='-s -md1024'
  69.       export RAR
  70.  
  71.     RAR will use this string as default parameters in the command line and
  72.     will create "solid" archives with 1024 KB sliding dictionary size.
  73.  
  74.     RAR handles options with priority as following:
  75.  
  76.        command line switches                   highest priority
  77.        switches in the RAR variable            lower priority
  78.        switches saved in configuration file    lowest priority
  79.  
  80.  
  81.  Log file
  82.  ~~~~~~~~
  83.  
  84.   If the switch -ilog is specified in the command line or configuration
  85.   file, RAR will write informational messages, concerning errors
  86.   encountered while processing archives, into a log file. Read switch
  87.   -ilog description for more details.
  88.  
  89.  
  90.  The file order list for solid archiving - rarfiles.lst
  91.  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  92.  
  93.   rarfiles.lst contains a user-defined file list, which tells RAR
  94.   the order in which to add files to a solid archive. It may contain
  95.   file names, wildcards and special entry - $default. The default
  96.   entry defines the place in order list for files not matched
  97.   with other entries in this file. The comment character is ';'.
  98.  
  99.   In Windows this file should be placed in the same directory as RAR
  100.   or in %APPDATA%\WinRAR directory, in Unix - to the user's home directory
  101.   or in /etc.
  102.  
  103.   Tips to provide improved compression and speed of operation:
  104.  
  105.   - similar files should be grouped together in the archive;
  106.   - frequently accessed files should be placed at the beginning.
  107.  
  108.   Normally masks placed nearer to the top of list have a higher priority,
  109.   but there is an exception from this rule. If rarfiles.lst contains such
  110.   two masks that all files matched by one mask are also matched by another,
  111.   that mask which matches a smaller subset of file names will have higher
  112.   priority regardless of its position in the list. For example, if you have
  113.   *.cpp and f*.cpp masks, f*.cpp has a higher priority, so the position of
  114.   'filename.cpp' will be chosen according to 'f*.cpp', not '*.cpp'.
  115.  
  116.  
  117.  RAR command line syntax
  118.  ~~~~~~~~~~~~~~~~~~~~~~~
  119.  
  120.  Syntax
  121.  
  122.     RAR <command>  [ -<switches> ]  <archive>  [ <@listfiles...> ]
  123.         [ <files...> ]  [ <path_to_extract\> ]
  124.  
  125.  Description
  126.  
  127.     Command line options (commands and switches) provide control of
  128.     creating and managing archives with RAR. The command is a string (or a
  129.     single letter) which commands RAR to perform a corresponding action.
  130.     Switches are designed to modify the way RAR performs the action. Other
  131.     parameters are archive name and files to be archived into or extracted
  132.     from the archive.
  133.  
  134.     Listfiles are plain text files that contain names of files to process.
  135.     File names should start at the first column. It is possible to
  136.     put comments to the listfile after // characters. For example,
  137.     you may create backup.lst containing the following strings:
  138.  
  139.     c:\work\doc\*.txt         //backup text documents
  140.     c:\work\image\*.bmp       //backup pictures
  141.     c:\work\misc
  142.  
  143.     and then run:
  144.  
  145.        rar a backup @backup.lst
  146.  
  147.     If you wish to read file names from stdin (standard input),
  148.     specify the empty listfile name (just @).
  149.  
  150.     By default, console RAR uses the single byte encoding in list files,
  151.     but it can be redefined with -sc<charset>l switch.
  152.  
  153.     You may specify both usual file names and list files in the same
  154.     command line. If neither files nor listfiles are specified,
  155.     then *.* is implied and RAR will process all files.
  156.  
  157.     Many RAR commands, such as extraction, test or list, allow to use
  158.     wildcards in archive name. If no extension is specified in archive
  159.     mask, RAR assumes .rar, so * means all archives with .rar extension.
  160.     If you need to process all archives without extension, use *. mask.
  161.     *.* mask selects all files. Wildcards in archive name are not allowed
  162.     when archiving and deleting.
  163.  
  164.     In Unix you need to enclose RAR command line parameters containing
  165.     wildcards in single or double quotes to prevent their expansion
  166.     by Unix shell. For example, this command will extract *.asm files
  167.     from all *.rar archives in current directory:
  168.  
  169.        rar e '*.rar' '*.asm'
  170.  
  171.  
  172.     Command could be any of the following:
  173.  
  174.     a       Add files to archive.
  175.  
  176.             Examples:
  177.  
  178.             1) add all *.hlp files from the current directory to
  179.             the archive help.rar:
  180.  
  181.             rar a help *.hlp
  182.  
  183.             2) archive all files from the current directory and subdirectories
  184.             to 362000 bytes size solid, self-extracting volumes
  185.             and add the recovery record to each volume:
  186.  
  187.             rar a -r -v362 -s -sfx -rr save
  188.  
  189.             Because no file names are specified, all files (*) are assumed.
  190.  
  191.             3) as a special exception, if directory name is specified as
  192.             an argument and if directory name does not include file masks
  193.             and trailing backslashes, the entire contents of the directory
  194.             and all subdirectories will be added to the archive even
  195.             if switch -r is not specified.
  196.  
  197.             The following command will add all files from the directory
  198.             Bitmaps and its subdirectories to the RAR archive Pictures.rar:
  199.  
  200.             rar a Pictures.rar Bitmaps
  201.  
  202.             4) if directory name includes file masks or trailing backslashes,
  203.             normal rules apply and you need to specify switch -r to process
  204.             its subdirectories.
  205.  
  206.             The following command will add all files from directory Bitmaps,
  207.             but not from its subdirectories, because switch -r is not
  208.             specified:
  209.  
  210.             rar a Pictures.rar Bitmaps\*
  211.  
  212.  
  213.     c       Add archive comment. Comments are displayed while the archive is
  214.             being processed. Comment length is limited to 62000 bytes
  215.  
  216.             Examples:
  217.  
  218.             rar c distrib.rar
  219.  
  220.             Also comments may be added from a file using -z[file] switch.
  221.             The following command adds a comment from info.txt file:
  222.  
  223.             rar c -zinfo.txt dummy
  224.  
  225.  
  226.     ch      Change archive parameters.
  227.  
  228.             This command can be used with most of archive modification
  229.             switches to modify archive parameters. It is especially
  230.             convenient for switches like -cl, -cu, -tl, which do not
  231.             have a dedicated command.
  232.  
  233.             It is not able to recompress, encrypt or decrypt archive data
  234.             and it cannot merge or create volumes. If used without any
  235.             switches, 'ch' command just copies the archive data without
  236.             modification.
  237.  
  238.             Example:
  239.  
  240.             Set archive time to latest file:
  241.  
  242.             rar ch -tl files.rar
  243.  
  244.  
  245.     cw      Write archive comment to specified file.
  246.  
  247.             Format of output file depends on -sc switch.
  248.  
  249.             If output file name is not specified, comment data will be
  250.             sent to stdout.
  251.  
  252.             Examples:
  253.  
  254.             1) rar cw arc comment.txt
  255.  
  256.             2) rar cw -scuc arc unicode.txt
  257.  
  258.             3) rar cw arc
  259.  
  260.  
  261.     d       Delete files from archive. Please note if the processing of this
  262.             command results in removing all the files from the archive,
  263.             the empty archive would removed.
  264.  
  265.  
  266.     e       Extract files without archived paths.
  267.  
  268.             Extract files excluding their path component, so all files
  269.             are created in the same destination directory.
  270.  
  271.             Use 'x' command if you wish to extract full pathnames.
  272.  
  273.             Example:
  274.  
  275.             rar e -or html.rar *.css css\
  276.  
  277.             extract all *.css files from html.rar archive to 'css' folder
  278.             excluding archived paths. Rename extracted files automatically
  279.             in case several files have the same name.
  280.  
  281.  
  282.     f       Freshen files in archive. Updates those files changed since they
  283.             were packed to the archive. This command will not add new files
  284.             to the archive.
  285.  
  286.  
  287.     i[i|c|h|t]=<string>
  288.             Find string in archives.
  289.  
  290.             Supports following optional parameters:
  291.  
  292.               i - case insensitive search (default);
  293.  
  294.               c - case sensitive search;
  295.  
  296.               h - hexadecimal search;
  297.  
  298.               t - use ANSI, Unicode and OEM character tables (Windows only);
  299.  
  300.             If no parameters are specified, it is possible to use
  301.             the simplified command syntax i<string> instead of i=<string>
  302.  
  303.             It is allowed to specify 't' modifier with other parameters,
  304.             for example, ict=string performs case sensitive search
  305.             using all mentioned above character tables.
  306.  
  307.             Examples:
  308.  
  309.             1) rar "ic=first level" -r c:\*.rar *.txt
  310.  
  311.             Perform case sensitive search of "first level" string
  312.             in *.txt files in *.rar archives on the disk c:
  313.  
  314.             2) rar ih=f0e0aeaeab2d83e3a9 -r e:\texts
  315.  
  316.             Search for hex string f0 e0 ae ae ab 2d 83 e3 a9
  317.             in rar archives in e:\texts directory.
  318.  
  319.  
  320.     k       Lock archive. Any command which intends to change the archive
  321.             will be ignored.
  322.  
  323.             Example:
  324.  
  325.             rar k final.rar
  326.  
  327.  
  328.     l[t[a],b]
  329.             List archive contents [technical [all], bare].
  330.     
  331.             'l' command lists archived file attributes, size, date,
  332.             time and name, one file per line. If file is encrypted,
  333.             line starts from '*' character.
  334.  
  335.             'lt' displays the detailed file information in multiline mode.
  336.             This information includes file checksum value, host OS,
  337.             compression options and other parameters.
  338.  
  339.             'lta' provide the detailed information not only for files,
  340.             but also for service headers like NTFS streams
  341.             or file security data.
  342.  
  343.             'lb' lists bare file names with path, one per line,
  344.             without any additional information.
  345.  
  346.             You can use -v switch to list contents of all volumes
  347.             in volume set: rar l -v vol.part1.rar
  348.  
  349.             Commands 'lt', 'lta' and 'lb' are equal to 'vt', 'vta'
  350.             and 'vb' correspondingly.
  351.  
  352.  
  353.     m[f]    Move to archive [files only]. Moving files and directories
  354.             results in the files and directories being erased upon
  355.             successful completion of the packing operation. Directories will
  356.             not be removed if 'f' modifier is used and/or '-ed' switch is
  357.             applied.
  358.  
  359.  
  360.     p       Print file to stdout.
  361.  
  362.             You may use this command together with -inul switch to disable
  363.             all RAR messages and print only file data. It may be important
  364.             when you need to send a file to stdout for use in pipes.
  365.  
  366.     
  367.     r       Repair archive. Archive repairing is performed in two stages.
  368.             First, the damaged archive is searched for a recovery record
  369.             (see 'rr' command). If archive contains the previously added
  370.             recovery record and if damaged data area is continuous
  371.             and smaller than error correction code size in recovery record,
  372.             chance of successful archive reconstruction is high.
  373.             When this stage has been completed, a new archive is created,
  374.             named as fixed.arcname.rar, where 'arcname' is the original
  375.             (damaged) archive name.            
  376.  
  377.             If broken archive does not contain a recovery record or if
  378.             archive is not completely recovered due to major damage,
  379.             second stage is performed. During this stage only the archive
  380.             structure is reconstructed and it is impossible to recover
  381.             files which fail checksum validation, it is still possible,
  382.             however, to recover undamaged files, which were inaccessible
  383.             due to the broken archive structure. Mostly this is useful
  384.             for non-solid archives. This stage is never efficient
  385.             for archives with encrypted file headers, which can be repaired
  386.             only if recovery record is present.
  387.  
  388.             When the second stage is completed, the reconstructed archive
  389.             is saved as rebuilt.arcname.rar, where 'arcname' is
  390.             the original archive name.
  391.  
  392.             By default, repaired archives are created in the current
  393.             directory, but you can append an optional destpath\ parameter
  394.             to specify another destination directory.
  395.  
  396.             Example:
  397.  
  398.             rar r buggy.rar c:\fixed\
  399.  
  400.             repair buggy.rar and place the result to 'c:\fixed' directory.
  401.  
  402.  
  403.     rc      Reconstruct missing and damaged volumes using recovery volumes
  404.             (.rev files). You need to specify any existing volume
  405.             as the archive name, for example, 'rar rc backup.part03.rar'
  406.  
  407.             Read 'rv' command description for information about
  408.             recovery volumes.
  409.  
  410.  
  411.     rn      Rename archived files.
  412.  
  413.             The command syntax is:
  414.  
  415.             rar rn <arcname> <srcname1> <destname1> ... <srcnameN> <destnameN>
  416.  
  417.             For example, the following command:
  418.  
  419.             rar rn data.rar readme.txt readme.bak info.txt info.bak
  420.  
  421.             will rename readme.txt to readme.bak and info.txt to info.bak
  422.             in the archive data.rar.
  423.  
  424.             It is allowed to use wildcards in the source and destination
  425.             names for simple name transformations like changing file
  426.             extensions. For example:
  427.  
  428.             rar rn data.rar *.txt *.bak
  429.  
  430.             will rename all *.txt files to *.bak.
  431.  
  432.             RAR does not check if the destination file name is already
  433.             present in the archive, so you need to be careful to avoid
  434.             duplicated names. It is especially important when using
  435.             wildcards. Such a command is potentially dangerous, because
  436.             a wrong wildcard may corrupt all archived names.
  437.  
  438.  
  439.     rr[N]   Add data recovery record. Optionally, redundant information
  440.             (recovery record) may be added to archive. While it increases
  441.             the archive size, it helps to recover archived files in case of
  442.             disk failure or data loss of other kind, provided that damage
  443.             is not too severe. Such damage recovery can be done with
  444.             command "r" (repair).
  445.  
  446.             RAR 4.x and RAR 5.0 archives use different recovery record
  447.             structure and algorithms.
  448.  
  449.             RAR 4.x recovery record is based on XOR algorithm.
  450.             You can specify 4.x record size as a number of recovery sectors
  451.             or as a percent of archive size. To specify a number of sectors
  452.             just add it directly after 'rr', like 'rr1000' for 1000 sectors.
  453.             To use a percent append 'p' or '%' modifier after the percent
  454.             number, such as 'rr5p' or 'rr5%' for 5%. Note that in Windows
  455.             .bat and .cmd files it is necessary to use 'rr5%%' instead of
  456.             'rr5%', because the command processor treats the single '%'
  457.             as the start of a batch file parameter, so it might be more
  458.             convenient to use 'p' instead of '%' in this case.
  459.  
  460.             RAR 4.x recovery sectors are 512 bytes long. If damaged area
  461.             is continuous, every sector helps to recover 512 bytes of
  462.             damaged information. This value may be lower in cases of
  463.             multiple damage. Maximum number of recovery sectors is 524288.
  464.  
  465.             Size of 4.x recovery record may be approximately determined as
  466.             <archive size>/256 + <number of recovery sectors>*512 bytes.
  467.  
  468.             RAR 5.0 recovery record uses Reed-Solomon error correction codes.
  469.             Its ability to repair continuous damage is about the same
  470.             as for RAR 4.x, allowing to restore slightly less data than
  471.             recovery record size. But it is significantly more efficient
  472.             than RAR 4.x record in case of multiple damaged areas.
  473.  
  474.             RAR 5.0 record does not use 512 byte sectors and you can specify
  475.             its size only as a percent of archive size. Even if '%' or 'p'
  476.             modifier is not present, RAR treats the value as a percent
  477.             in case of RAR 5.0 format, so both 'rr5' and 'rr5p' mean 5%.
  478.             Due to service data overhead the actual resulting recovery record
  479.             size only approximately matches the user defined percent
  480.             and difference is larger for smaller archives.
  481.  
  482.             RAR 5.0 recovery record size cannot exceed the protecting
  483.             archive size, so you cannot use more than 100% as a parameter.
  484.             Larger recovery records are processed slower both when creating
  485.             and repairing.
  486.  
  487.             RAR 5.0 recovery record is more resistant to damage of recovery
  488.             record itself and can utilize a partially corrupt recovery
  489.             record data. Note, though, that 'R' repair command does not fix
  490.             broken blocks in recovery record. Only file data are corrected.
  491.             After successful archive repair, you may need to create a new
  492.             recovery record for saved files.
  493.  
  494.             Both 4.x and 5.0 records are most efficient if data positions
  495.             in damaged archive are not shifted. If you copy an archive
  496.             from damaged media using some special software and if you have
  497.             a choice to fill damaged areas with zeroes or to cut out them
  498.             from copied file, filling with zeroes or any other value is
  499.             preferable, because it allows to preserve original data positions.
  500.             Still, even though it is not an optimal mode, both versions
  501.             of records attempt to repair data even in case of deletions
  502.             or insertions of reasonable size, when data positions were
  503.             shifted. RAR 5.0 recovery record handles deletions and insertions
  504.             more efficiently than RAR 4.x.
  505.  
  506.             If you use the plain 'rr' command without optional parameter,
  507.             RAR will set the recovery record size to 3% of archive size
  508.             by default.
  509.  
  510.             Example:
  511.  
  512.             rar rr5p arcname
  513.  
  514.             add the recovery record of 5% of archive size.
  515.  
  516.  
  517.     rv[N]   Create recovery volumes (.rev files), which can be later
  518.             used to reconstruct missing and damaged files in a volume
  519.             set. This command makes sense only for multivolume archives
  520.             and you need to specify the name of the first volume
  521.             in the set as the archive name. For example:
  522.  
  523.             rar rv3 data.part01.rar
  524.  
  525.             This feature may be useful for backups or, for example,
  526.             when you posted a multivolume archive to a newsgroup
  527.             and a part of subscribers did not receive some of the files.
  528.             Reposting recovery volumes instead of usual volumes
  529.             may reduce the total number of files to repost.
  530.  
  531.             Each recovery volume is able to reconstruct one missing
  532.             or damaged RAR volume. For example, if you have 30 volumes
  533.             and 3 recovery volumes, you are able to reconstruct any
  534.             3 missing volumes. If the number of .rev files is less than
  535.             the number of missing volumes, reconstructing is impossible.
  536.             The total number of usual and recovery volumes must not
  537.             exceed 255 for RAR 4.x and 65535 for RAR 5.0 archive format.
  538.  
  539.             Original RAR volumes must not be modified after creating
  540.             recovery volumes. Recovery algorithm uses data stored both
  541.             in REV files and in RAR volumes to rebuild missing RAR volumes.
  542.             So if you modify RAR volumes, for example, lock them, after
  543.             creating REV files, recovery process will fail.
  544.  
  545.             Additionally to recovery data, RAR 5.0 recovery volumes
  546.             also store service information such as checksums of protected
  547.             RAR files. So they are slightly larger than RAR volumes
  548.             which they protect. If you plan to copy individual RAR and REV
  549.             files to some removable media, you need to take it into account
  550.             and specify RAR volume size by a few kilobytes smaller
  551.             than media size.
  552.  
  553.             The optional <N> parameter specifies a number of recovery
  554.             volumes to create and must be less than the total number
  555.             of RAR volumes in the set. You may also append a percent
  556.             or 'p' character to this parameter, in such case the number of
  557.             creating .rev files will be equal to this percent taken
  558.             from the total number of RAR volumes. For example:
  559.  
  560.             rar rv15% data.part01.rar
  561.  
  562.             RAR reconstructs missing and damaged volumes either when
  563.             using 'rc' command or automatically, if it cannot locate
  564.             the next volume and finds the required number of .rev files
  565.             when unpacking.
  566.  
  567.             Original copies of damaged volumes are renamed to *.bad
  568.             before reconstruction. For example, volname.part03.rar
  569.             will be renamed to volname.part03.rar.bad.
  570.  
  571.  
  572.     s[name] Convert archive to SFX. The archive is merged with a SFX module
  573.             (using a module in file default.sfx or specified in the switch).
  574.             In the Windows version default.sfx should be placed in the
  575.             same directory as the rar.exe, in Unix - in the user's
  576.             home directory, in /usr/lib or /usr/local/lib.
  577.  
  578.     s-      Remove SFX module from the already existing SFX archive.
  579.             RAR creates a new archive without SFX module, the original
  580.             SFX archive is not deleted.
  581.  
  582.     t       Test archive files. This command performs a dummy file
  583.             extraction, writing nothing to the output stream, in order to
  584.             validate the specified file(s).
  585.  
  586.             Examples:
  587.  
  588.             Test archives in current directory:
  589.  
  590.             rar t *
  591.  
  592.             or for Unix:
  593.  
  594.             rar t '*'
  595.  
  596.             User may test archives in all sub-directories, starting
  597.             with the current path:
  598.  
  599.             rar t -r *
  600.  
  601.             or for Unix:
  602.  
  603.             rar t -r '*'
  604.  
  605.  
  606.     u       Update files in archive. Adds files not yet in the archive
  607.             and updates files that have been changed since they were packed
  608.             into the archive.
  609.  
  610.  
  611.     v[t[a],b]
  612.             Verbosely list archive contents [technical [all], bare].
  613.     
  614.             'v' command lists archived file attributes, size, packed size,
  615.             compression ratio, date, time, checksum and name, one file
  616.             per line. If file is encrypted, line starts from '*' character.
  617.             For BLAKE2sp checksum only two first and one last symbol are
  618.             displayed.
  619.  
  620.             'vt' displays the detailed file information in multiline mode.
  621.             This information includes file checksum value, host OS,
  622.             compression options and other parameters.
  623.  
  624.             'vta' provide the detailed information not only for files,
  625.             but also for service headers like NTFS streams
  626.             or file security data.
  627.  
  628.             'vb' lists bare file names with path, one per line,
  629.             without any additional information.
  630.  
  631.             You can use -v switch to list contents of all volumes
  632.             in volume set: rar v -v vol.part1.rar
  633.  
  634.             Commands 'vt', 'vta' and 'vb' are equal to 'lt', 'lta'
  635.             and 'lb' correspondingly.
  636.  
  637.  
  638.     x       Extract files with full path.
  639.  
  640.             Examples:
  641.  
  642.             1) extract 10cents.txt to current directory not displaying
  643.                the archive comment
  644.  
  645.                rar x -c- dime 10cents.txt
  646.  
  647.             2) extract *.txt from docs.rar to c:\docs directory
  648.  
  649.                rar x docs.rar *.txt c:\docs\
  650.  
  651.             3) extract the entire contents of docs.rar to current directory
  652.  
  653.                rar x docs.rar
  654.  
  655.  
  656.     Switches (used in conjunction with a command):
  657.  
  658.  
  659.     -?      Display help on commands and switches. The same as when none
  660.             or an illegal command line option is entered.
  661.  
  662.  
  663.     --      Stop switches scanning
  664.  
  665.             This switch tells to RAR that there are no more switches
  666.             in the command line. It could be useful, if either archive
  667.             or file name starts from '-' character. Without '--' switch
  668.             such a name would be treated as a switch.
  669.  
  670.             Example:
  671.  
  672.             add all files from the current directory to the solid archive
  673.             '-StrangeName'
  674.  
  675.             RAR a -s -- -StrangeName
  676.  
  677.  
  678.     -@[+]   Disable [enable] file lists
  679.  
  680.             RAR treats command line parameters starting from '@' character
  681.             as file lists. So by default, RAR attempts to read 'filename'
  682.             filelist, when encountering '@filename' parameter.
  683.             But if '@filename' file exists, RAR treats the parameter
  684.             as '@filename' file instead of reading the file list.
  685.  
  686.             Switch -@[+] allows to avoid this ambiguity and strictly
  687.             define how to handle parameters starting from '@' character.
  688.  
  689.             If you specify -@, all such parameters found after this switch
  690.             will be considered as file names, not file lists.
  691.  
  692.             If you specify -@+, all such parameters found after this switch
  693.             will be considered as file lists, not file names.
  694.  
  695.             This switch does not affect processing parameters located
  696.             before it.
  697.  
  698.             Example:
  699.  
  700.             test the archived file '@home'
  701.  
  702.             rar t -@ notes.rar @home
  703.  
  704.  
  705.     -ac     Clear Archive attribute after compression or extraction
  706.             (Windows version only).
  707.  
  708.             If this switch is specified when archiving, "Archive" file
  709.             attribute is cleared for successfully compressed files.
  710.             When extracting, this switch will clear "Archive" attribute
  711.             for extracted files.
  712.  
  713.  
  714.     -ad     Append archive name to destination path.
  715.  
  716.             This option may be useful when unpacking a group of archives.
  717.             By default RAR places files from all archives in the same
  718.             directory, but this switch creates a separate directory
  719.             for files unpacked from each archive.
  720.  
  721.             Example:
  722.  
  723.             rar x -ad *.rar data\
  724.  
  725.             RAR will create subdirectories below 'data' for every unpacking
  726.             archive.
  727.  
  728.  
  729.     -ag[format]
  730.             Generate archive name using the current date and time.
  731.  
  732.             Appends the current date string to an archive name when
  733.             creating or processing an archive. Useful for daily backups.
  734.  
  735.             Format of the appending string is defined by the optional
  736.             "format" parameter or by "YYYYMMDDHHMMSS" if this parameter
  737.             is absent. The format string may include the following
  738.             characters:
  739.  
  740.             Y   - year
  741.             M   - month
  742.             MMM - month name as text string (Jan, Feb, etc.)
  743.             W   - a week number (a week starts with Monday)
  744.             A   - day of week number (Monday is 1, Sunday - 7)
  745.             D   - day of month
  746.             E   - day of year
  747.             H   - hours
  748.             M   - minutes (treated as minutes if encountered after hours)
  749.             I   - minutes (treated as minutes regardless of hours position)
  750.             S   - seconds
  751.             N   - archive number. RAR searches for already existing archive
  752.                   with generated name and if found, increments the archive
  753.                   number until generating a unique name. 'N' format character
  754.                   is not supported when creating volumes.
  755.                   When performing non-archiving operations like extracting,
  756.                   RAR selects the existing archive preceding the first
  757.                   unused name or sets N to 1 if no such archive exists.
  758.  
  759.             Each of format string characters listed above represents only
  760.             one character added to archive name. For example, use WW for
  761.             two digit week number or YYYY to define four digit year.
  762.  
  763.             If the first character in the format string is '+', positions
  764.             of the date string and base archive name are exchanged,
  765.             so a date will precede an archive name.
  766.  
  767.             The format string may contain optional text enclosed in '{'
  768.             and '}' characters. This text is inserted into archive name.
  769.  
  770.             All other characters are added to an archive name without
  771.             changes.
  772.  
  773.             If you need to process an already existing archive, be careful
  774.             with -ag switch. Depending on the format string and time passed
  775.             since previous -ag use, generated and existing archive names
  776.             may mismatch. In this case RAR will create or open a new archive
  777.             instead of processing the already existing one. You may use
  778.             -log switch to write the generated archive name to a file
  779.             and then read it from file for further processing.
  780.  
  781.  
  782.             Examples:
  783.  
  784.             1) use the default YYYYMMDDHHMMSS format
  785.  
  786.                rar a -ag backup
  787.  
  788.             2) use DD-MMM-YY format
  789.  
  790.                rar t -agDD-MMM-YY backup
  791.  
  792.             3) use YYYYMMDDHHMM format, place date before 'backup'
  793.  
  794.                rar a -ag+YYYYMMDDHHMM backup
  795.  
  796.             4) use YYYY-WW-A format, include fields description
  797.  
  798.                rar a -agYYYY{year}-WW{week}-A{wday} backup
  799.  
  800.             5) use YYYYMMDD and the archive number. It allows to generate
  801.                unique names even when YYYYMMDD format mask used more than
  802.                once in the same day
  803.  
  804.                rar a -agYYYYMMDD-NN backup
  805.  
  806.  
  807.     -ai     Ignore file attributes.
  808.  
  809.             If this switch is used when extracting, RAR does not set
  810.             general file attributes stored in archive to extracted files.
  811.             This switch preserves attributes assigned by operating system
  812.             to a newly created file.
  813.  
  814.             If this switch is used when archiving, predefined values,
  815.             typical for file and directory, are stored instead of actual
  816.             attributes.
  817.  
  818.             In Windows it affects archive, system, hidden and read-only
  819.             attributes. in Unix - user, group, and others file permissions.
  820.  
  821.  
  822.     -ao     Add files with Archive attribute set
  823.             (Windows version only).
  824.  
  825.             Example:
  826.  
  827.             add all disk C: files with Archive attribute set
  828.             to the 'f:backup' and clear files Archive attribute
  829.  
  830.             rar a -r -ac -ao f:backup c:\*.*
  831.  
  832.  
  833.     -ap     Set path inside archive. This path is merged to file
  834.             names when adding files to an archive and removed
  835.             from file names when extracting.
  836.  
  837.             For example, if you wish to add the file 'readme.txt'
  838.             to the directory 'DOCS\ENG' of archive 'release',
  839.             you may run:
  840.  
  841.             rar a -apDOCS\ENG release readme.txt
  842.  
  843.             or to extract 'ENG' to the current directory:
  844.  
  845.             rar x -apDOCS release DOCS\ENG\*.*
  846.  
  847.  
  848.     -as     Synchronize archive contents
  849.  
  850.             If this switch is used when archiving, those archived files
  851.             which are not present in the list of the currently added
  852.             files, will be deleted from the archive. It is convenient to
  853.             use this switch in combination with -u (update) to synchronize
  854.             contents of an archive and an archiving directory.
  855.  
  856.             For example, after the command:
  857.  
  858.             rar a -u -as backup sources\*.cpp
  859.  
  860.             the archive 'backup.rar' will contain only *.cpp files
  861.             from directory 'sources', all other files will be deleted
  862.             from the archive. It looks similar to creating a new archive,
  863.             but with one important exception: if no files are modified
  864.             since the last backup, the operation is performed much faster
  865.             than the creation of a new archive.
  866.  
  867.  
  868.     -cfg-   Ignore configuration file and RAR environment variable.
  869.  
  870.  
  871.     -cl     Convert file names to lower case.
  872.  
  873.  
  874.     -cu     Convert file names to upper case.
  875.  
  876.  
  877.     -c-     Disable comments show.
  878.  
  879.  
  880.     -df     Delete files after archiving
  881.  
  882.             Move files to archive. This switch in combination with
  883.             the command "A" performs the same action as the command "M".
  884.  
  885.  
  886.     -dh     Open shared files
  887.  
  888.             Allows to process files opened by other applications
  889.             for writing.
  890.  
  891.             This switch helps if an application allowed read access
  892.             to file, but if all types of file access are prohibited,
  893.             the file open operation will still fail.
  894.  
  895.             This option could be dangerous, because it allows
  896.             to archive a file, which at the same time is modified
  897.             by another application, so use it carefully.
  898.  
  899.  
  900.     -dr     Delete files to Recycle Bin
  901.  
  902.             Delete files after archiving and place them to Recycle Bin.
  903.             Available in Windows version only.
  904.  
  905.  
  906.     -ds     Do not sort files while adding to a solid archive.
  907.  
  908.  
  909.     -dw     Wipe files after archiving
  910.  
  911.             Delete files after archiving. Before deleting file data
  912.             are overwritten by zero bytes to prevent recovery of deleted
  913.             files, file is truncated and renamed to temporary name.
  914.  
  915.             Please be aware that such approach is designed for usual
  916.             hard disks, but may fail to overwrite the original file data
  917.             on solid state disks, as result of SSD wear leveling technology
  918.             and more complicated data addressing.
  919.  
  920.  
  921.     -ed     Do not add empty directories
  922.  
  923.             This switch indicates that directory records are not to be
  924.             stored in the created archive. When extracting such archives,
  925.             RAR creates non-empty directories based on paths of files
  926.             contained in them. Information about empty directories is
  927.             lost. All attributes of non-empty directories except a name
  928.             (access rights, streams, etc.) will be lost as well, so use
  929.             this switch only if you do not need to preserve such information.
  930.  
  931.             If -ed is used with 'm' command or -df switch, RAR will not
  932.             remove empty directories.
  933.  
  934.  
  935.     -en     Do not add "end of archive" block
  936.  
  937.             Not supported for RAR 5.0 archives.
  938.             
  939.             By default, RAR adds an "end of archive" block to the end of
  940.             a new or updated archive. It allows to skip external data like
  941.             digital signatures safely, but in some special cases it may be
  942.             useful to disable this feature. For example, if an archive
  943.             is transferred between two systems via an unreliable link and
  944.             at the same time a sender adds new files to it, it may be
  945.             important to be sure that the already received file part will
  946.             not be modified on the other end between transfer sessions.
  947.  
  948.             This switch cannot be used with volumes, because the end
  949.             of archive block contains information important for correct
  950.             volume processing.
  951.  
  952.  
  953.     -ep     Exclude paths from names. This switch enables files to be added
  954.             to an archive without including the path information. This
  955.             could, of course, result in multiple files existing in the
  956.             archive with the same name.
  957.  
  958.  
  959.     -ep1    Exclude base dir from names. Do not store the path entered
  960.             in the command line.
  961.  
  962.             Example:
  963.  
  964.             all files and directories from the directory tmp will be added
  965.             to the archive 'test', but the path in archived names will not
  966.             include 'tmp\'
  967.  
  968.             rar a -ep1 -r test tmp\*
  969.  
  970.             This is equivalent to the commands:
  971.  
  972.             cd tmp
  973.             rar a -r ..\test
  974.             cd ..
  975.  
  976.  
  977.     -ep2    Expand paths to full. Store full file paths (except the drive
  978.             letter and leading path separator) when archiving.
  979.  
  980.  
  981.     -ep3    Expand paths to full including the drive letter.
  982.             Windows version only.
  983.  
  984.             This switch stores full file paths including the drive
  985.             letter if used when archiving. Drive separators (colons)
  986.             are replaced by underscore characters.
  987.  
  988.             If you use -ep3 when extracting, it will change
  989.             underscores back to colons and create unpacked files
  990.             in their original directories and disks. If the user
  991.             also specified a destination path, it will be ignored.
  992.  
  993.             It also converts UNC paths from \\server\share to
  994.             __server\share when archiving and restores them to
  995.             the original state when extracting.
  996.  
  997.             This switch can help to backup several disks to the same
  998.             archive. For example, you may run:
  999.  
  1000.             rar a -ep3 -r backup.rar c:\ d:\ e:\
  1001.  
  1002.             to create backup and:
  1003.  
  1004.             rar x -ep3 backup.rar
  1005.  
  1006.             to restore it.
  1007.  
  1008.             But be cautious and use -ep3 only if you are sure that
  1009.             extracting archive does not contain any malicious files.
  1010.             In other words, use it if you have created an archive yourself
  1011.             or completely trust its author. This switch allows to overwrite
  1012.             any file in any location on your computer including important
  1013.             system files and should normally be used only for the purpose
  1014.             of backup and restore.
  1015.  
  1016.  
  1017.     -e[+]<attr>
  1018.             Specifies file exclude or include attributes mask.
  1019.  
  1020.             <attr> is a number in the decimal, octal (with leading '0')
  1021.             or hex (with leading '0x') format.
  1022.  
  1023.             By default, without '+' sign before <attr>, this switch
  1024.             defines the exclude mask. So if result of bitwise AND between
  1025.             <attr> and file attributes is nonzero, file would not be
  1026.             processed.
  1027.  
  1028.             If '+' sign is present, it specifies the include mask.
  1029.             Only those files which have at least one attribute specified
  1030.             in the mask will be processed.
  1031.  
  1032.             In Windows version is also possible to use symbols D, S, H,
  1033.             A and R instead of a digital mask to denote directories
  1034.             and files with system, hidden, archive and read-only attributes.
  1035.             The order in which the attributes are given is not significant.
  1036.             Unix version supports D and V symbols to define directory
  1037.             and device attributes.
  1038.  
  1039.             It is allowed to specify both -e<attr> and -e+<attr>
  1040.             in the same command line.
  1041.  
  1042.             Examples:
  1043.  
  1044.             1) archive only directory names without their contents
  1045.  
  1046.                rar a -r -e+d dirs
  1047.  
  1048.             2) do not compress system and hidden files:
  1049.  
  1050.                rar a -esh files
  1051.  
  1052.             3) do not extract read-only files:
  1053.  
  1054.                rar x -er files
  1055.  
  1056.  
  1057.     -f      Freshen files. May be used with archive extraction or creation.
  1058.             The command string "a -f" is equivalent to the command 'f', you
  1059.             could also use the switch '-f' with the commands 'm' or 'mf'. If
  1060.             the switch '-f' is used with the commands 'x' or 'e', then only
  1061.             old files would be replaced with new versions extracted from the
  1062.             archive.
  1063.  
  1064.  
  1065.     -hp[p]  Encrypt both file data and headers.
  1066.  
  1067.             This switch is similar to -p[p], but switch -p encrypts
  1068.             only file data and leaves other information like file names
  1069.             visible. This switch encrypts all sensitive archive areas
  1070.             including file data, file names, sizes, attributes, comments
  1071.             and other blocks, so it provides a higher security level.
  1072.             Without a password it is impossible to view even the list of
  1073.             files in archive encrypted with -hp.
  1074.  
  1075.             Example:
  1076.  
  1077.             rar a -hpfGzq5yKw secret report.txt
  1078.  
  1079.             will add the file report.txt to the encrypted archive
  1080.             secret.rar using the password 'fGzq5yKw'
  1081.  
  1082.  
  1083.     -ht[b|c]
  1084.             Select hash type [BLAKE2,CRC32] for file checksum.
  1085.  
  1086.             File data integrity in RAR archive is protected by checksums
  1087.             calculated and stored for every archived file.
  1088.  
  1089.             By default, RAR uses CRC32 function to calculate the checksum.
  1090.             RAR 5.0 archive format also allows to select BLAKE2sp hash
  1091.             function instead of CRC32.
  1092.  
  1093.             Specify -htb switch for BLAKE2sp and -htc for CRC32 hash function.
  1094.             Since CRC32 is the default algorithm, you may need -htc only to
  1095.             override -htb in RAR configuration.
  1096.  
  1097.             CRC32 output is 32 bit length. While CRC32 properties are
  1098.             suitable to detect most of unintentional data errors,
  1099.             it is not reliable enough to verify file data identity.
  1100.             In other words, if two files have the same CRC32,
  1101.             it does not guarantee that file contents is the same.
  1102.  
  1103.             BLAKE2sp output is 256 bit. Being a cryptographically strong
  1104.             hash function, it practically guarantees that if two files
  1105.             have the same value of BLAKE2sp, their contents is the same.
  1106.             BLAKE2sp error detection property is also more reliable than
  1107.             in shorter CRC32.
  1108.             
  1109.             Since BLAKE2sp output is longer, resulting archive is
  1110.             slightly larger for -htb switch.
  1111.  
  1112.             If archive headers are unencrypted (no switch -hp), checksums
  1113.             for encrypted RAR 5.0 files are modified using a special
  1114.             password dependent algorithm, to make impossible guessing
  1115.             file contents based on checksums. Do not expect such encrypted
  1116.             file checksums to match usual CRC32 and BLAKE2sp values.
  1117.             
  1118.             This switch is supported only by RAR 5.0 format, so you
  1119.             need to use -ma switch with it.
  1120.  
  1121.             You can see checksums of archived files using 'vt' or 'lt'
  1122.             commands.
  1123.     
  1124.  
  1125.             Example:
  1126.  
  1127.             rar a -ma -htb lists.rar *.lst
  1128.  
  1129.             will add *.lst to lists.rar using BLAKE2sp for file checksums.
  1130.  
  1131.  
  1132.     -id[c,d,p,q]
  1133.             Disable messages.
  1134.  
  1135.             Switch -idc disables the copyright string.
  1136.  
  1137.             Switch -idd disables "Done" string at the end of operation.
  1138.  
  1139.             Switch -idp disables the percentage indicator.
  1140.  
  1141.             Switch -idq turns on the quiet mode, so only error messages
  1142.             and questions are displayed.
  1143.  
  1144.             It is allowed to use several modifiers at once,
  1145.             so switch -idcdp is correct.
  1146.  
  1147.  
  1148.     -ieml[.][addr]
  1149.             Send archive by email. Windows version only.
  1150.  
  1151.             Attach an archive created or updated by the add command
  1152.             to email message. You need to have a MAPI compliant email
  1153.             client to use this switch (most modern email programs
  1154.             support MAPI interface).
  1155.  
  1156.             You may enter a destination email address directly
  1157.             in the switch or leave it blank. In the latter case you
  1158.             will be asked for it by your email program. It is possible
  1159.             to specify several addresses separated by commas or semicolons.
  1160.  
  1161.             If you append a dot character to -ieml, an archive will be
  1162.             deleted after it was successfully attached to an email.
  1163.             If the switch is used when creating a multivolume archive,
  1164.             every volume is attached to a separate email message.
  1165.  
  1166.  
  1167.     -ierr   Send all messages to stderr.
  1168.  
  1169.  
  1170.     -ilog[name]
  1171.             Log errors to file (registered version only).
  1172.  
  1173.             Write error messages to rar.log file. If optional 'name'
  1174.             parameter is not specified, the log file is created
  1175.             using the following defaults:
  1176.  
  1177.             Unix:    .rarlog file in the user's home directory;
  1178.             Windows: rar.log file in %APPDATA%\WinRAR directory.
  1179.  
  1180.             If 'name' parameter includes a file name without path,
  1181.             RAR will create the log file in the default directory
  1182.             mentioned above using the specified name. Include both path
  1183.             and name to 'name' parameter if you wish to change
  1184.             the location of log file.
  1185.  
  1186.             By default, log file uses UTF-16 little endian encoding,
  1187.             but it can be changed with -sc<charset>g switch, such as -scag
  1188.             for native single byte encoding.
  1189.  
  1190.  
  1191.             Example:
  1192.  
  1193.             rar a -ilogc:\log\backup.log backup d:\docs
  1194.  
  1195.             will create c:\log\backup.log log file in case of errors.
  1196.  
  1197.  
  1198.     -inul   Disable all messages.
  1199.  
  1200.  
  1201.     -ioff   Turn PC off after completing an operation. The hardware must
  1202.             support the power off feature. Windows version only.
  1203.  
  1204.  
  1205.     -isnd   Enable sound.
  1206.  
  1207.  
  1208.     -k      Lock archive. Any command which intends to change the archive
  1209.             will be ignored.
  1210.  
  1211.  
  1212.     -kb     Keep broken extracted files.
  1213.  
  1214.             RAR, by default, deletes files with checksum errors
  1215.             after extraction. The switch -kb specifies that files
  1216.             with checksum errors should not be deleted.
  1217.  
  1218.  
  1219.     -log[fmt][=name]
  1220.             Write names to log file.
  1221.  
  1222.             This switch allows to write archive and file names to specified
  1223.             text file in archiving, extracting, deleting and listing commands.
  1224.             Its behavior is defined by 'fmt' string, which can include one
  1225.             or more of following characters:
  1226.  
  1227.             A - write archive names to log file. If RAR creates or processes
  1228.                 volumes, all volume names are logged.
  1229.  
  1230.             F - write processed file names to log file. It includes
  1231.                 files added to archive and extracted, deleted or listed
  1232.                 files inside of archive.
  1233.  
  1234.             P - if log file with specified name is exist, append data
  1235.                 to existing file instead of creating a new one.
  1236.  
  1237.             U - write data in Unicode format.
  1238.  
  1239.             If neither 'A' nor 'F' are specified, 'A' is assumed.
  1240.  
  1241.             'name' parameter allows to specify the name of log file.
  1242.             It must be separated from 'fmt' string by '=' character.
  1243.             If 'name' is not present, RAR will use the default rarinfo.log
  1244.             file name.
  1245.  
  1246.             It is allowed to specify several -log switches in the same
  1247.             command line.
  1248.  
  1249.             This switch can be particularly useful, when you need to process
  1250.             an archive created with -ag or -v switches in a batch script.
  1251.             You can specify -loga=arcname.txt when creating an archive
  1252.             and then read an archive name generated by RAR from arcname.txt
  1253.             with an appropriate command. For example, in Windows batch file
  1254.             it can be: set /p name=<arcname.txt.
  1255.  
  1256.             Examples:
  1257.  
  1258.             1) write names of created volumes to vollist.txt:
  1259.  
  1260.                rar a -v100m -loga=vollist.txt volume.rar c:\data
  1261.  
  1262.             2) write the generated archive name to backup.txt in Unicode:
  1263.  
  1264.                rar a -ag -logau=backup.txt backup.rar myfiles\*
  1265.  
  1266.             3) write names of tested volumes to vollist.txt and names
  1267.                of tested archived files inside of volumes to filelist.txt:
  1268.  
  1269.                rar t -log=vollist.txt -logf=filelist.txt volume.part01.rar
  1270.  
  1271.  
  1272.     -m<n>   Set compression method:
  1273.  
  1274.        -m0   store     do not compress file when adding to archive
  1275.        -m1   fastest   use fastest method (less compressive)
  1276.        -m2   fast      use fast compression method
  1277.        -m3   normal    use normal (default) compression method
  1278.        -m4   good      use good compression method (more
  1279.                        compressive, but slower)
  1280.        -m5   best      use best compression method (slightly more
  1281.                        compressive, but slowest)
  1282.  
  1283.             If this switch is not specified, RAR uses -m3 method
  1284.             (normal compression).
  1285.  
  1286.  
  1287.     -ma[4|5]
  1288.             Specify a version of archiving format.
  1289.  
  1290.             By default RAR creates archives in RAR 4.x format.
  1291.             Use -ma5 or just -ma to create RAR 5.0 archives.
  1292.             Use -ma4 in case you need to override -ma5 saved
  1293.             in configuration and force RAR to use RAR 4.x format.
  1294.  
  1295.             This switch is used only when creating a new archive.
  1296.             It is ignored when updating an existing archive.
  1297.  
  1298.  
  1299.     -mc<par>
  1300.             Set advanced compression parameters.
  1301.  
  1302.             This switch is intended mainly for benchmarking and
  1303.             experiments. In the real environment it is usually better
  1304.             to allow RAR to select optimal parameters automatically.
  1305.             Please note that improper use of this switch may lead
  1306.             to very serious performance and compression loss, so use
  1307.             it only if you clearly understand what you do.
  1308.  
  1309.             It has the following syntax:
  1310.  
  1311.             -mc[param1][:param2][module][+ or -]
  1312.  
  1313.             where <module> is the one character field denoting a part
  1314.             of the compression algorithm, which has to be configured.
  1315.  
  1316.             It may have the following values:
  1317.  
  1318.               A       - audio compression;
  1319.               C       - true color (RGB) data compression;
  1320.               D       - delta compression;
  1321.               E       - 32-bit x86 executables compression;
  1322.               I       - 64-bit Intel Itanium executables compression;
  1323.               T       - text compression.
  1324.  
  1325.             RAR 5.0 archive format supports only 'D' and 'E' values.
  1326.  
  1327.             '+' sign at the end of switch applies the selected algorithm
  1328.             module to all processed data, '-' disables the module at all.
  1329.             If no sign is specified, RAR will choose modules automatically,
  1330.             based on data and the current compression method.
  1331.  
  1332.             Switch -mc- disables all optional modules and allows only
  1333.             the general compression algorithm.
  1334.  
  1335.             <Param1> and <Param2> are module dependent parameters
  1336.             described below.
  1337.  
  1338.  
  1339.             Audio compression, delta compression:
  1340.  
  1341.             <Param1> is a number of byte channels (can be 1 - 31).
  1342.             RAR splits multibyte channels to bytes, for example,
  1343.             two 16-bit audio channels are considered by RAR as four
  1344.             channels one byte each.
  1345.  
  1346.             <Param2> is ignored.
  1347.  
  1348.  
  1349.             32-bit x86 Intel executables compression,
  1350.             64-bit Intel Itanium executables compression,
  1351.             true color (RGB) data compression:
  1352.  
  1353.             <Param1> and <Param2> are ignored.
  1354.  
  1355.  
  1356.             Text compression:
  1357.  
  1358.             Text compression algorithm provides noticeably higher compression
  1359.             on plain text data. But it cannot utilize several CPU cores
  1360.             efficiently resulting in slower compression time comparing to
  1361.             general algorithm in multicore and multiprocessor environment.
  1362.             Also its decompression speed is much slower than in general
  1363.             algorithm regardless of CPU cores number. This is why
  1364.             the text compression is disabled by default. You can specify
  1365.             -mct switch to allow RAR to select this algorithm automatically
  1366.             for suitable data. Switch -mct+ will force use of the text
  1367.             compression for all data.
  1368.  
  1369.             Switch -mct can also include <Param1> and <Param2>, so its
  1370.             full syntax is -mc[param1][:param2]t[+ or -].
  1371.  
  1372.             <Param1> is the order of PPM algorithm (can be 2 - 63).
  1373.             Usually a higher value slightly increases the compression ratio
  1374.             of redundant data, but only if enough memory is available
  1375.             to PPM. In case of lack of memory the result may be negative.
  1376.             Higher order values decrease both compression and decompression
  1377.             speed.
  1378.  
  1379.             <Param2> is memory in megabytes allocated for PPM (1-128).
  1380.             Higher values may increase the compression ratio, but note
  1381.             that PPM uses the equal memory size both to compress and
  1382.             decompress, so if you allocate too much memory when creating
  1383.             an archive, other people may have problems when decompressing
  1384.             it on a computer with less memory installed. Decompression
  1385.             will be still possible using virtual memory, but it may
  1386.             become very slow.
  1387.  
  1388.  
  1389.             Examples:
  1390.  
  1391.             1) switch -mc1a+ forces use of 8-bit mono audio compression
  1392.             for all data.
  1393.  
  1394.             2) switch -mc10:40t+ forces use of text compression
  1395.             algorithm for all data, sets the compression order to 10
  1396.             and allocates 40 MB memory.
  1397.  
  1398.             3) switch -mc12t sets the text compression order to 12,
  1399.             when the text compression is used, but leaves to RAR to
  1400.             decide when to use it.
  1401.  
  1402.             4) switches -mct -mcd- allow RAR to apply the text compression
  1403.             to suitable data and disable the delta compression.
  1404.  
  1405.  
  1406.     -md<n>[k,m,g]
  1407.             Select the dictionary size.
  1408.  
  1409.             Sliding dictionary is the memory area used by compression
  1410.             algorithm to find and compress repeated data patterns. 
  1411.             If size of file being compressed (or total files size in case
  1412.             of solid archive) is larger than dictionary size, increasing
  1413.             the dictionary is likely to increase the compression ratio,
  1414.             reduce the archiving speed and increase memory requirements.
  1415.  
  1416.             For RAR 4.x archive format the dictionary size can be:
  1417.             64 KB, 128 KB, 256 KB, 512 KB, 1 MB, 2 MB, 4 MB.
  1418.  
  1419.             For RAR 5.0 archive format the dictionary size can be:
  1420.             128 KB, 256 KB, 512 KB, 1 MB, 2 MB, 4 MB, 8 MB, 16 MB,
  1421.             32 MB, 64 MB, 128 MB, 256 MB, 512 MB, 1 GB.
  1422.  
  1423.             You can use 'k', 'm' and 'g' modifiers to specify the size
  1424.             in kilo-, mega- and gigabytes, like -md64m for 64 MB dictionary.
  1425.             If no modifier is specified, megabytes are assumed,
  1426.             so -md64m and -md64 are equal.
  1427.  
  1428.             When archiving, RAR needs about 6x memory of specified
  1429.             dictionary size, so 512 MB and 1 GB sizes are available
  1430.             in 64 bit RAR version only. When extracting, slightly more
  1431.             than a single dictionary size is allocated, so both 32
  1432.             and 64 bit versions can unpack archives with all dictionaries
  1433.             up to and including 1 GB.
  1434.  
  1435.             RAR can reduce the dictionary size if it is significantly
  1436.             larger than source data size. It helps to reduce memory
  1437.             requirements without decreasing compression.
  1438.  
  1439.             Default sliding dictionary size is 4 MB for RAR 4.x
  1440.             and 32 MB for RAR 5.0 archive format.
  1441.  
  1442.             Example:
  1443.  
  1444.             RAR a -s -ma -md128 lib *.dll
  1445.  
  1446.             create a solid archive in RAR 5.0 format with 128 MB dictionary.
  1447.  
  1448.  
  1449.     -ms[list]
  1450.             Specify file types to store.
  1451.  
  1452.             Specify file types, which will be stored without compression.
  1453.             This switch may be used to store already compressed files,
  1454.             which helps to increase archiving speed without noticeable
  1455.             loss in the compression ratio.
  1456.  
  1457.             Optional <list> parameter defines the list of file extensions
  1458.             separated by semicolons. For example, -msrar;zip;jpg will
  1459.             force RAR to store without compression all RAR and ZIP
  1460.             archives and JPG images. It is also allowed to specify wildcard
  1461.             file masks in the list, so -ms*.rar;*.zip;*.jpg will work too.
  1462.             Several -ms switches are permitted, such as -msrar -mszip
  1463.             instead of -msrar;zip.
  1464.  
  1465.             In Unix -ms switch containing several file types needs to be
  1466.             enclosed in quote marks. It protects semicolons from processing
  1467.             by Unix shell. Another solution is to use individual -ms<type>
  1468.             switches for every file type.
  1469.  
  1470.             If <list> is not specified, -ms switch will use the default
  1471.             set of extensions, which includes the following file types:
  1472.  
  1473.             7z, ace, arj, bz2, cab, gz, jpeg, jpg, lha, lzh, mp3,
  1474.             rar, taz, tgz, xz, z, zip
  1475.  
  1476.  
  1477.     -mt<threads>
  1478.             Set the number of threads.
  1479.  
  1480.             <threads> parameter can take values from 1 to 32.
  1481.             It defines the recommended maximum number of active threads
  1482.             for compression algorithm also as for other RAR modules,
  1483.             which can start several threads. While RAR attempts to follow
  1484.             this recommendation, sometimes the real number of active
  1485.             threads can exceed the specified value.
  1486.  
  1487.             Change of <threads> parameter slightly affects the compression
  1488.             ratio, so archives created with different -mt switches
  1489.             will not be exactly the same even if all other compression
  1490.             settings are equal.
  1491.  
  1492.             If -mt switch is not specified, RAR will try to detect
  1493.             the number of available processors and select the optimal
  1494.             number of threads automatically.
  1495.     
  1496.  
  1497.     -n<f>   Additionally filter included files.
  1498.  
  1499.             Apply the mask as an additional filter to included file list.
  1500.             Wildcards can be used both in the name and file parts of
  1501.             file mask. See switch -x description for details on mask syntax.
  1502.             You can specify the switch '-n' several times.
  1503.  
  1504.             This switch does not replace usual file masks, which still
  1505.             need to be entered in the command line. It is an additional
  1506.             filter limiting processed files only to those matching
  1507.             the include mask specified in -n switch. It can help to
  1508.             reduce the command line length sometimes.
  1509.  
  1510.             For example, if you need to compress all *.txt and *.lst
  1511.             files in directories Project and Info, you can enter:
  1512.  
  1513.             rar a -r text Project\*.txt Project\*.lst Info\*.txt Info\*.lst
  1514.  
  1515.             or using the switch -n:
  1516.  
  1517.             rar a -r -n*.txt -n*.lst text Project Info
  1518.  
  1519.  
  1520.     -n@<lf> Read additional filter masks from list file.
  1521.  
  1522.             Similar to -n<f> switch, but reads filter masks from
  1523.             the list file. If you use -n@ without the list file name
  1524.             parameter, it will read filter masks from stdin.
  1525.  
  1526.             This switch does not replace usual list files or file masks,
  1527.             which still need to be entered in the command line.
  1528.             It is an additional filter limiting processed files only to
  1529.             those matching the include mask specified in -n switch.
  1530.  
  1531.             Example:
  1532.  
  1533.             rar a -r -n@inclist.txt text Project Info @listfile.txt
  1534.  
  1535.  
  1536.     -oc     Set NTFS Compressed attribute. Windows version only.
  1537.  
  1538.             This switch allows to restore NTFS Compressed attribute
  1539.             when extracting files. RAR saves Compressed file attributes
  1540.             when creating an archive, but does not restore them unless
  1541.             -oc switch is specified.
  1542.  
  1543.     -oh     Save hard links as the link instead of the file.
  1544.  
  1545.             If archiving files include several hard links, store the first
  1546.             archived hard link as usual file and the rest of hard links
  1547.             in the same set as links to this first file. When extracting
  1548.             such files, RAR will create hard links instead of usual files.
  1549.  
  1550.             You must not delete or rename the first hard link in archive
  1551.             after the archive was created, because it will make extraction
  1552.             of following links impossible. If you modify the first link,
  1553.             all following links will also have the modified contents
  1554.             after extracting. Extraction command must involve the first
  1555.             hard link to create following hard links successfully.
  1556.     
  1557.             This switch is supported only by RAR 5.0 format,
  1558.             so you need to use -ma switch with it.
  1559.  
  1560.  
  1561.     -oi[0-4][:<minsize>]
  1562.             Save identical files as references.
  1563.  
  1564.             Switch -oi0 (or just -oi-) turns off identical file processing,
  1565.             so such files are compressed as usual files. It can be used to
  1566.             override another -oi value stored in RAR configuration.
  1567.  
  1568.             If -oi1 (or just -oi) is specified, RAR analyzes the file
  1569.             contents before starting archiving. If several identical files
  1570.             are found, the first file in the set is saved as usual file
  1571.             and all following files are saved as references to this first
  1572.             file. It allows to reduce the archive size, but applies some
  1573.             restrictions to resulting archive. You must not delete or rename
  1574.             the first identical file in archive after the archive was
  1575.             created, because it will make extraction of following files
  1576.             using it as a reference impossible. If you modify the first file,
  1577.             following files will also have the modified contents
  1578.             after extracting. Extraction command must involve the first file
  1579.             to create following files successfully.
  1580.  
  1581.             It is recommended to use -oi only if you compress a lot of
  1582.             identical files, will not modify an archive later and will
  1583.             extract an archive entirely, without necessity to unpack or skip
  1584.             individual files. If all identical files are small enough to
  1585.             fit into compression dictionary specified with -md<n> switch,
  1586.             switch -s can provide more flexible solution than -oi.
  1587.  
  1588.             Switch -oi2 is similar to -oi1, with the only difference:
  1589.             it will display names of found identical files before starting
  1590.             archiving.
  1591.  
  1592.             Switches -oi3 and -oi4 allow to utilize RAR to generate
  1593.             lists of identical files. Though you still need to provide
  1594.             a dummy archive name to make the command syntax valid,
  1595.             in this mode an archive is not created and nothing is compressed.
  1596.             If -oi3 is used, file sizes and names are displayed
  1597.             and every identical file group is separated with empty line.
  1598.             Switch -oi4 displays bare file names and skips the first
  1599.             identical file in every file group, so only duplicates
  1600.             are listed.
  1601.  
  1602.             Optional <minsize> value allows to define the minimum file size
  1603.             threshold. Files smaller than <minsize> are not analyzed
  1604.             and not considered as identical. If this parameter is not
  1605.             present, it is assumed to be 64 KB by default. Selecting
  1606.             too small <minsize> may increase the time required to detect
  1607.             identical files.
  1608.     
  1609.             Switches -oi1 and -oi2 are supported only by RAR 5.0 format,
  1610.             so you need to use -ma switch with it.
  1611.  
  1612.             Examples:
  1613.  
  1614.             1) rar a -oi -ma archive
  1615.  
  1616.             Save contents of current directory to archive.rar.
  1617.             Store identical files as references.
  1618.  
  1619.             2) rar a -oi3:1000000 -r dummy c:\photo\*.jpg
  1620.  
  1621.             List all duplicate *.jpg files lather than 1000000 bytes
  1622.             found in c:\photo and its subdirectories.
  1623.     
  1624.  
  1625.     -ol[a]  Process symbolic links as the link [absolute paths]
  1626.             
  1627.             Save symbolic links as links, so file contents is not archived.
  1628.             In Windows version it also saves reparse points as links.
  1629.             Such archive entries are restored as symbolic links
  1630.             or reparse points when extracting.
  1631.  
  1632.             Supported both for RAR 4.x and RAR 5.0 archives in RAR for Unix
  1633.             and only for RAR 5.0 archives in RAR for Windows.
  1634.  
  1635.             In Windows you may need to run RAR as administrator to create
  1636.             symbolic links when extracting.
  1637.  
  1638.             RAR adds all links regardless of target when archiving with
  1639.             -ol switch. When extracting, by default, RAR skips symbolic
  1640.             links pointing outside of destination directory, with absolute
  1641.             paths or excessive number of ".." in link target. You can enable
  1642.             extracting such links with -ola switch.
  1643.  
  1644.             Links pointing to directories outside of extraction destination
  1645.             directory can present a security risk. Enable their extraction
  1646.             only if you are sure that archive contents is safe,
  1647.             such as your own backup.
  1648.  
  1649.             Links with relative paths inside of destination directory
  1650.             in target are extracted always regardless of -ol or -ola switch.
  1651.  
  1652.  
  1653.     -or     Rename extracted files automatically if file with the same name
  1654.             already exists. Renamed file will get the name like
  1655.             'filename(N).txt', where 'filename.txt' is the original file
  1656.             name and 'N' is a number starting from 1 and incrementing
  1657.             if file exists.
  1658.  
  1659.  
  1660.     -os     Save NTFS streams. Windows version only.
  1661.  
  1662.             This switch has meaning only for NTFS file system and allows
  1663.             to save alternate data streams associated with a file.
  1664.             You may need to specify it when archiving if you use software
  1665.             storing data in alternative streams and wish to preserve
  1666.             these streams.
  1667.  
  1668.             Streams are not saved for NTFS encrypted files.
  1669.  
  1670.  
  1671.     -ow     Use this switch when archiving to save file security
  1672.             information and when extracting to restore it.
  1673.  
  1674.             Unix RAR version saves file owner and group when using
  1675.             this switch.
  1676.  
  1677.             Windows version stores owner, group, file permissions and
  1678.             audit information, but only if you have necessary privileges
  1679.             to read them. Note that only NTFS file system supports
  1680.             file based security under Windows.
  1681.  
  1682.  
  1683.     -o[+|-] Set the overwrite mode. Can be used both when extracting
  1684.             and updating archived files. Following modes are available:
  1685.  
  1686.               -o           Ask before overwrite
  1687.                            (default for extracting files);
  1688.  
  1689.               -o+          Overwrite all
  1690.                            (default for updating archived files);
  1691.  
  1692.               -o-          Skip existing files.
  1693.  
  1694.  
  1695.     -p[pwd] Set password
  1696.  
  1697.             Set password <pwd> to encrypt files when archiving
  1698.             or to decrypt when extracting.
  1699.  
  1700.             Passwords are case-sensitive. Maximum password length is
  1701.             127 characters. Longer passwords are truncated to this length.
  1702.             If you omit a password in command line, you will be prompted
  1703.             with "Enter password" message.
  1704.  
  1705.             Example:
  1706.  
  1707.             rar a -pmyhoney secret1 *.txt
  1708.  
  1709.             add files *.txt and encrypt them with password "myhoney".
  1710.  
  1711.  
  1712.     -p-     Do not query password
  1713.  
  1714.             Do not query password for encrypted files when extracting.
  1715.             Actually you can specify any invalid password to suppress
  1716.             the password prompt and force RAR to issue 'incorrect password'
  1717.             message when extracting an encrypted file. This switch just
  1718.             sets '-' as a password.
  1719.  
  1720.  
  1721.     -qo[-|+]
  1722.             Add quick open information [none|force]
  1723.  
  1724.             RAR archives store every file header containing information
  1725.             such as file name, time, size and attributes immediately
  1726.             before data of described file. This approach is more damage
  1727.             resistant than storing all file headers in a single continuous
  1728.             block, which if broken or truncated would destroy the entire
  1729.             archive contents. But while being more reliable, such file
  1730.             headers scattered around the entire archive are slower to
  1731.             access if we need to quickly open the archive contents 
  1732.             in a shell like WinRAR graphical interface.
  1733.  
  1734.             To improve archive open speed and still not make the entire
  1735.             archive dependent on a single damaged block, RAR 5.0 archives
  1736.             can include an optional quick open record. Such record is
  1737.             added to the end of archive and contains copies of file names
  1738.             and other file information stored in a single continuous block
  1739.             additionaly to normal file headers inside of archive.
  1740.             Since the block is continuous, its contents can be read quickly,
  1741.             without necessity to perform a lot of disk seek operations.
  1742.             Every file header in this block is protected with a checksum.
  1743.             If RAR detects that quick open information is damaged,
  1744.             it resorts to reading individual headers from inside of archive,
  1745.             so damage resistance is not lessened.
  1746.  
  1747.             Quick open record contains the full copy of file header,
  1748.             which may be several tens or hundreds of bytes per file,
  1749.             increasing the archive size by the same amount. This size
  1750.             increase is most noticeable for many small files, when file
  1751.             data size is comparable to file header. So by default,
  1752.             if no -qo is specified or -qo without parameter is used,
  1753.             RAR stores copies of headers only for relatively large files
  1754.             and continues to use local headers for smaller files.
  1755.             Concrete file size threshold can depend on RAR version.
  1756.             Such approach provides a reasonable open speed to archive size
  1757.             tradeoff. If you prefer to have the maximum archive open speed
  1758.             regardless of size, you can use -qo+ to store copies of all
  1759.             file headers. If you need to have the smallest possible archive
  1760.             and do not care about archive open speed in different programs,
  1761.             specify -qo- to exclude the quick open information completely.
  1762.  
  1763.             If you wish to measure the performance effect of this switch,
  1764.             be sure that archive contents is not stored in a disk cache.
  1765.             No real disk seeks are performed for cached archive file,
  1766.             making access to file headers fast even without quick open
  1767.             record.
  1768.  
  1769.     
  1770.     -r      Recurse subdirectories. May be used with commands:
  1771.             a, u, f, m, x, e, t, p, v, l, c, cf and s.
  1772.  
  1773.             When used with the commands 'a', 'u', 'f', 'm' will process
  1774.             files in all sub-directories as well as the current working
  1775.             directory.
  1776.  
  1777.             When used with the commands x, e, t, p, v, l, c, cf or s will
  1778.             process all archives in sub-directories as well as the current
  1779.             working directory.
  1780.  
  1781.  
  1782.     -r-     Disable recursion.
  1783.  
  1784.             Even without -r switch RAR can enable the recursion
  1785.             automatically in some situations. Switch -r- prohibits it.
  1786.  
  1787.             If you specify a directory name when archiving and if such
  1788.             name does not include wildcards, by default RAR adds
  1789.             the directory contents even if switch -r is not specified.
  1790.             Also RAR automatically enables the recursion if disk root
  1791.             without wildcards is specified as a file mask. Switch -r-
  1792.             disables such behavior.
  1793.  
  1794.             For example:
  1795.  
  1796.             rar a -r- arc dirname
  1797.  
  1798.             command will add only the empty 'dirname' directory and ignore
  1799.             its contents. Following command:
  1800.  
  1801.             rar a -r- arc c:\
  1802.  
  1803.             will compress contents of root c: directory only and
  1804.             will not recurse into subdirectories.
  1805.  
  1806.  
  1807.     -r0     Similar to -r, but when used with the commands 'a', 'u', 'f',
  1808.             'm' will recurse into subdirectories only for those file masks,
  1809.             which include wildcard characters '*' and '?'.
  1810.  
  1811.             This switch works only for file names. Directory names without
  1812.             a file name part, such as 'dirname', are not affected by -r0
  1813.             and their contents is added to archive completely unless -r-
  1814.             switch is specified.
  1815.  
  1816.             Example:
  1817.  
  1818.             rar a -r0 docs.rar *.doc readme.txt
  1819.  
  1820.             add *.doc files from the current directory and its subdirectories
  1821.             and readme.txt only from the current directory to docs.rar
  1822.             archive. In case of usual -r switch, RAR would search for
  1823.             readme.txt in subdirectories too.
  1824.  
  1825.  
  1826.     -ri<p>[:<s>]
  1827.             Set priority and sleep time. Available only in RAR for Windows.
  1828.             This switch regulates system load by RAR in multitasking
  1829.             environment. Possible task priority <p> values are 0 - 15.
  1830.  
  1831.             If <p> is 0, RAR uses the default task priority.
  1832.             <p> equal to 1 sets the lowest possible priority,
  1833.             15 - the highest possible.
  1834.  
  1835.             Sleep time <s> is a value from 0 to 1000 (milliseconds).
  1836.             This is a period of time that RAR gives back to the system
  1837.             after read or write operations while compressing or extracting.
  1838.             Non-zero <s> may be useful if you need to reduce system load
  1839.             even more than can be achieved with <p> parameter.
  1840.  
  1841.             Example:
  1842.  
  1843.             execute RAR with default priority and 10 ms sleep time:
  1844.  
  1845.             rar a -ri0:10 backup *.*
  1846.  
  1847.  
  1848.     -rr[N]  Add data recovery record. This switch is used when creating
  1849.             or modifying an archive to add a data recovery record to
  1850.             the archive. See the 'rr[N]' command description for details.
  1851.  
  1852.  
  1853.     -rv[N]  Create recovery volumes. This switch is used when creating
  1854.             a multivolume archive to generate recovery volumes.
  1855.             See the 'rv[N]' command description for details.
  1856.  
  1857.  
  1858.     -s      Create solid archive. A solid archive is an archive packed by
  1859.             a special compression method, which treats several or all
  1860.             files, within the archive, as one continuous data stream.
  1861.  
  1862.             Solid archiving significantly increases compression, when
  1863.             adding a large number of small, similar files. But it also
  1864.             has a few important disadvantages: slower updating of existing
  1865.             solid archives, slower access to individual files, lower
  1866.             damage resistance.
  1867.  
  1868.             Usually files in a solid archive are sorted by extension.
  1869.             But it is possible to disable sorting with -ds switch or set
  1870.             an alternative file order using a special file, rarfiles.lst.
  1871.  
  1872.             Example:
  1873.  
  1874.             create solid archive sources.rar with 512 KB dictionary,
  1875.             recursing all directories, starting with the current directory.
  1876.             Add only .asm files:
  1877.  
  1878.             rar a -s -md512 sources.rar *.asm -r
  1879.  
  1880.  
  1881.     -s<N>   Create solid groups using file count
  1882.  
  1883.             Similar to -s, but resets solid statistics after compressing
  1884.             <N> files. Usually decreases compression, but also
  1885.             decreases losses in case of solid archive damages.
  1886.  
  1887.  
  1888.     -sc<charset>[objects]
  1889.             Specify the character set for list files, log files
  1890.             and archive comment files.
  1891.  
  1892.             'Charset' parameter is mandatory and can have one
  1893.             of the following values:
  1894.  
  1895.               U - Unicode;
  1896.               A - the native single byte encoding, which is ANSI
  1897.                   for Windows version;
  1898.               O - OEM (DOS) encoding. Windows version only.
  1899.  
  1900.             Files in Unicode format must have FFFE or FEFF Unicode
  1901.             character in the beginning, otherwise RAR will ignore
  1902.             this switch and process the file as ASCII text.
  1903.  
  1904.             'Objects' parameter is optional and can have one of
  1905.             the following values:
  1906.  
  1907.               G - log files produced by -ilog switch;
  1908.               L - list files;
  1909.               C - comment files;
  1910.               R - messages sent to redirected files and pipes (Windows only). 
  1911.  
  1912.             It is allowed to specify more than one object, for example,
  1913.             -scolc. If 'objects' parameter is missing, 'charset' is applied
  1914.             to all objects.
  1915.  
  1916.             This switch allows to specify the character set for files
  1917.             in -z[file] switch, list files and comment files written by
  1918.             "cw" command.
  1919.  
  1920.             Examples:
  1921.  
  1922.             1) rar a -scol data @list
  1923.  
  1924.             Read names contained in 'list' using OEM encoding.
  1925.  
  1926.             2) rar c -scuc -zcomment.txt data
  1927.  
  1928.             Read comment.txt as Unicode file.
  1929.  
  1930.             3) rar cw -scuc data comment.txt
  1931.  
  1932.             Write comment.txt as Unicode file.
  1933.  
  1934.             4) rar lb -scur data > list.txt
  1935.  
  1936.             Save archived file names in data.rar to list.txt in Unicode.
  1937.  
  1938.  
  1939.     -se     Create solid groups using extension
  1940.  
  1941.             Similar to -s, but resets solid statistics if file extension
  1942.             is changed. Usually decreases compression, but also
  1943.             decreases losses from solid archive damages.
  1944.  
  1945.  
  1946.     -sfx[name]
  1947.             Create SFX archives. If this switch is used when creating a new
  1948.             archive, a Self-Extracting archive (using a module in file
  1949.             default.sfx or specified in the switch) would be created.
  1950.             In the Windows version default.sfx should be placed in the
  1951.             same directory as the rar.exe, in Unix - in the user's
  1952.             home directory, in /usr/lib or /usr/local/lib.
  1953.  
  1954.             Example:
  1955.  
  1956.             rar a -sfxwincon.sfx myinst
  1957.  
  1958.             create SelF-eXtracting (SFX) archive using wincon.sfx
  1959.             SFX-module.
  1960.  
  1961.  
  1962.     -si[name]
  1963.             Read data from stdin (standard input), when creating
  1964.             an archive. Optional 'name' parameter allows to specify
  1965.             a file name of compressed stdin data in the created
  1966.             archive. If this parameter is missing, the name will be
  1967.             set to 'stdin'.
  1968.  
  1969.             Example:
  1970.  
  1971.             type Tree.Far | rar a -siTree.Far tree.rar
  1972.  
  1973.             will compress 'type Tree.Far' output as 'Tree.Far' file.
  1974.  
  1975.  
  1976.     -sl<size>
  1977.             Process only those files, which size is less than
  1978.             specified in <size> parameter of this switch.
  1979.             Parameter <size> must be specified in bytes.
  1980.  
  1981.  
  1982.     -sm<size>
  1983.             Process only those files, which size is more than
  1984.             specified in <size> parameter of this switch.
  1985.             Parameter <size> must be specified in bytes.
  1986.  
  1987.  
  1988.     -sv     Create independent solid volumes
  1989.  
  1990.             By default RAR tries to reset solid statistics as soon
  1991.             as possible when starting a new volume, but only
  1992.             if enough data was packed after a previous reset
  1993.             (at least a few megabytes).
  1994.  
  1995.             This switch forces RAR to ignore packed data size and attempt
  1996.             to reset statistics for volumes of any size. It decreases
  1997.             compression, but increases chances to extract a part of data
  1998.             if one of several solid volumes in a volume set was lost
  1999.             or damaged.
  2000.  
  2001.             Note that sometimes RAR cannot reset statistics even
  2002.             using this switch. For example, it cannot be done when
  2003.             compressing one large file split between several volumes.
  2004.             RAR is able to reset solid statistics only between separate
  2005.             files, but not inside of single file.
  2006.  
  2007.             Ignored if used when creating a non-volume archive.
  2008.  
  2009.  
  2010.     -sv-    Create dependent solid volumes
  2011.  
  2012.             Disables to reset solid statistics between volumes.
  2013.  
  2014.             It slightly increases compression, but significantly reduces
  2015.             chances to extract a part of data if one of several solid
  2016.             volumes in a volume set was lost or damaged.
  2017.  
  2018.             Ignored if used when creating a non-volume archive.
  2019.  
  2020.  
  2021.     -s-     Disable solid archiving
  2022.  
  2023.  
  2024.     -t      Test files after archiving. This switch is especially
  2025.             useful in combination with the move command, so files will be
  2026.             deleted only if the archive had been successfully tested.
  2027.  
  2028.  
  2029.     -ta<date>
  2030.             Process only files modified after the specified date.
  2031.  
  2032.             Format of the date string is YYYYMMDDHHMMSS.
  2033.             It is allowed to insert separators like '-' or ':' to
  2034.             the date string and omit trailing fields. For example,
  2035.             the following switch is correct: -ta2001-11-20
  2036.             Internally it will be expanded to -ta20011120000000
  2037.             and treated as "files modified after 0 hour 0 minutes
  2038.             0 seconds of 20 November 2001".
  2039.  
  2040.  
  2041.     -tb<date>
  2042.             Process only files modified before the specified date.
  2043.             Format of the switch is the same as -ta<date>.
  2044.  
  2045.  
  2046.     -tk     Keep original archive date. Prevents RAR from modifying the
  2047.             archive date when changing an archive.
  2048.  
  2049.  
  2050.     -tl     Set archive time to newest file. Forces RAR to set the date of a
  2051.             changed archive to the date of the newest file in the archive.
  2052.  
  2053.  
  2054.     -tn<time>
  2055.             Process files newer than the specified time period. Format
  2056.             of the time string is:
  2057.  
  2058.             [<ndays>d][<nhours>h][<nminutes>m][<nseconds>s]
  2059.  
  2060.             For example, use switch -tn15d to process files newer
  2061.             than 15 days and -tn2h30m to process files newer than
  2062.             2 hours 30 minutes.
  2063.  
  2064.  
  2065.     -to<time>
  2066.             Process files older than the specified time period. Format
  2067.             of the switch is the same as -tn<time>.
  2068.  
  2069.  
  2070.     -ts<m,c,a>[N]
  2071.             Save or restore file time (modification, creation, access).
  2072.  
  2073.             Switch -tsm instructs RAR to save file modification time,
  2074.             -tsc - creation time and tsa - last access time. 
  2075.  
  2076.             For RAR 4.x archive format the optional parameter after
  2077.             the switch is the number between 0 and 4 controlling
  2078.             the file time precision. Value '1' enables 1 second precision,
  2079.             2 - 0.0065536 sec, 3 - 0.0000256 sec and 4 or '+' enables
  2080.             the maximum NTFS time precision, which is equal to
  2081.             0.0000001 sec. Value '0' or '-' means that creation
  2082.             and access time are not saved and low (two seconds) precision
  2083.             is used for modification time. Higher precision modes add
  2084.             more data to archive, up to 19 additional bytes per file
  2085.             in case of -tsm4 -tsa4 -tsc4 combination. If no precision
  2086.             is specified, RAR uses '4' (high) value.
  2087.  
  2088.             RAR 5.0 archive format saves file times either with 1 second
  2089.             precision for parameter value '1' or with maximum NTFS precision
  2090.             for '2', '3' and '4'. '0' forces RAR 5.0 archives to omit
  2091.             file time even if it is modification time, so unpacked files
  2092.             will have the current system time.
  2093.  
  2094.             Default RAR mode is -tsm4 -tsc0 -tsa0, so modification time
  2095.             is stored with the high precision and other times are ignored.
  2096.  
  2097.             It is necessary to specify -tsc and -tsa switches to set
  2098.             creation and access time when unpacking files (precision
  2099.             is irrelevant, but must not be 0). By default RAR sets
  2100.             only the modification time, even if archive contains
  2101.             creation and last access time. Setting the modification
  2102.             time to unpacked files may be also disabled with -tsm-.
  2103.  
  2104.             It is possible to omit the time type letter if you need
  2105.             to apply the switch to all three times. For example,
  2106.             -tsm4 -tsa4 -tsc4 can be replaced by -ts4, -ts+ or -ts.
  2107.             Use -ts- to save only the low precision modification time
  2108.             for RAR 4.x archives, not store file time for RAR 5.0 archives
  2109.             or to ignore all three file times on unpacking.
  2110.  
  2111.             When creating an archive, RAR automatically reduces
  2112.             the precision if high mode is not supported by the file
  2113.             system. It is not more than 2 seconds on FAT and 1 second
  2114.             in Unix. NTFS time precision is 0.0000001 second.
  2115.  
  2116.             Operating systems limit which time can be set on unpacking.
  2117.             Windows allows to set all three times, Unix - modification
  2118.             and last access, but not creation.
  2119.  
  2120.             Examples:
  2121.  
  2122.             1) rar a -ts backup
  2123.  
  2124.             Store all file times with the highest possible precision.
  2125.  
  2126.             2) rar x -tsa backup
  2127.  
  2128.             Restore modification and last access time. Switch -tsm
  2129.             is not required, because RAR uses it by default.
  2130.  
  2131.             3) rar a -tsm1 -tsc1 backup
  2132.  
  2133.             Store low precision modification and creation time.
  2134.             Without -tsm1 RAR would save the high precision modification
  2135.             time.
  2136.  
  2137.  
  2138.     -u      Update files. May be used with archive extraction or creation.
  2139.             The command string "a -u" is equivalent to the command 'u', you
  2140.             could also use the switch '-u' with the commands 'm' or 'mf'. If
  2141.             the switch '-u' is used with the commands 'x' or 'e', then files
  2142.             not present on the disk and files newer than their copies on the
  2143.             disk would extracted from the archive.
  2144.  
  2145.  
  2146.     -v      Create volumes with size autodetection or list all volumes
  2147.  
  2148.             This switch may be used when creating or listing volumes.
  2149.  
  2150.             In the first case it enables volume size autodetection,
  2151.             so new volumes will use all available space on the destination
  2152.             media. It is convenient when creating volumes on removable
  2153.             disks. You may read more about volumes in -v<size> description.
  2154.  
  2155.             In the second case, when this switch is used together with
  2156.             'V' or 'L' command, it forces RAR to list contents of all
  2157.             volumes starting from that specified in the command line.
  2158.             Without this switch RAR displays contents of only one single
  2159.             specified volume.
  2160.  
  2161.  
  2162.     -v<size>[k|b|f|m|M|g|G]
  2163.             Create volumes with size=<size>*1000 [*1024 | *1].
  2164.             By default this switch uses <size> as thousands (1000) of bytes
  2165.             (not 1024 x bytes). You may also enter the size in kilobytes
  2166.             using the symbol 'k', in bytes using the symbol 'b',
  2167.             megabytes - 'm', millions of bytes - 'M', gigabytes - 'g',
  2168.             billions (milliards) of bytes - 'G' or select one of several
  2169.             predefined values using the symbol 'f' following the numerical
  2170.             value. Predefined values can be 360, 720, 1200, 1440 or 2880
  2171.             and replaced with corresponding floppy disk size.
  2172.  
  2173.             If the size is omitted, autodetection will be used.
  2174.  
  2175.             It is allowed to enter decimal fractions using the dot as
  2176.             the decimal mark. For example, -v1.5g means 1.5 gigabytes.
  2177.  
  2178.             You may specify several -v switches to set different sizes
  2179.             for different volumes. For example:
  2180.  
  2181.               rar a -v100k -v200k -v300k arcname
  2182.  
  2183.             sets 100 KB size for first volume, 200 KB for second
  2184.             and 300 KB for all following volumes.
  2185.  
  2186.             If volumes are created on removable media, then after
  2187.             the creation of the first volume, the user will be prompted
  2188.             with:
  2189.  
  2190.               Create next volume: Yes/No/All
  2191.  
  2192.             At this moment in time, you should change the disks. Answering
  2193.             'A' will cause all volumes to be created without a pause.
  2194.  
  2195.             By default RAR volumes have names like 'volname.partNNN.rar',
  2196.             where NNN is the volume number. For RAR 4.x archive format
  2197.             using -vn switch it is possible to select another,
  2198.             extension based naming scheme, where the first volume file
  2199.             in a multi-volume set has the extension .rar, following
  2200.             volumes are numbered from .r00 to .r99. RAR 5.0 archives
  2201.             do not support -vn and extension based names.
  2202.  
  2203.             When extracting or testing a multi-volume archive you must use
  2204.             only the first volume name. If there is no next volume
  2205.             on the drive and the disk is removable, the user will be
  2206.             prompted with:
  2207.  
  2208.              Insert disk with <next volume name>
  2209.  
  2210.             Insert the disk with the correct volume and press any key.
  2211.  
  2212.             If while extracting, the next volume is not found and volumes
  2213.             are placed on the non-removable disk, RAR will abort with
  2214.             the error message:
  2215.  
  2216.              Cannot find <volume name>
  2217.  
  2218.             Archive volumes may not be modified. The commands 'd', 'f', 'u',
  2219.             's' cannot be used with Multi-volume sets. The command 'a' may
  2220.             be used only for the creation of a new multi-volume sequence.
  2221.  
  2222.             It is possible, although unlikely, that the file size, of a file
  2223.             in a multi-volume set, could be greater than its uncompressed
  2224.             size. This is due to the fact that 'storing' (no compression if
  2225.             size increases) cannot be enabled for multi-volume sets.
  2226.  
  2227.             Archive volumes may be Self-Extracting (SFX). Such an archive
  2228.             should be created using both the '-v' and '-sfx' switches.
  2229.  
  2230.             Example:
  2231.  
  2232.             create archive in volumes of fixed size:
  2233.  
  2234.             rar a -s -v1440 floparch.rar *.*
  2235.  
  2236.             will create solid volumes of size 1440000 bytes.
  2237.  
  2238.  
  2239.     -vd     Erase disk contents before creating volume
  2240.  
  2241.             All files and directories on the target disk will be erased
  2242.             when '-vd' is used.  The switch applies only to removable
  2243.             media, the hard disk cannot be erased using this switch.
  2244.  
  2245.  
  2246.     -ver[n] File version control
  2247.  
  2248.             Forces RAR to keep previous file versions when updating
  2249.             files in the already existing archive. Old versions are
  2250.             renamed to 'filename;n', where 'n' is the version number.
  2251.  
  2252.             By default, when unpacking an archive without the switch
  2253.             -ver, RAR extracts only the last added file version, the name
  2254.             of which does not include a numeric suffix. But if you specify
  2255.             a file name exactly, including a version, it will be also
  2256.             unpacked. For example, 'rar x arcname' will unpack only
  2257.             last versions, when 'rar x arcname file.txt;5' will unpack
  2258.             'file.txt;5', if it is present in the archive.
  2259.  
  2260.             If you specify -ver switch without a parameter when unpacking,
  2261.             RAR will extract all versions of all files that match
  2262.             the entered file mask. In this case a version number is
  2263.             not removed from unpacked file names. You may also extract
  2264.             a concrete file version specifying its number as -ver parameter.
  2265.             It will tell RAR to unpack only this version and remove
  2266.             a version number from file names. For example,
  2267.             'rar x -ver5 arcname' will unpack only 5th file versions.
  2268.  
  2269.             If you specify 'n' parameter when archiving, it will limit
  2270.             the maximum number of file versions stored in the archive.
  2271.             Old file versions exceeding this threshold will be removed.
  2272.  
  2273.  
  2274.     -vn     Use the old style volume naming scheme
  2275.  
  2276.             By default RAR volumes have names like 'volname.partNNN.rar',
  2277.             where NNN is the volume number. For RAR 4.x archive format
  2278.             using -vn switch it is possible to select another,
  2279.             extension based naming scheme, where the first volume file
  2280.             in a multi-volume set has the extension .rar, following
  2281.             volumes are numbered from .r00 to .r99. RAR 5.0 archives
  2282.             do not support -vn and extension based names.
  2283.  
  2284.  
  2285.     -vp     Pause before each volume
  2286.  
  2287.             By default RAR asks for confirmation before processing
  2288.             next volume only when archiving to removable disks and only
  2289.             if free disk space is less than volume size. This switch
  2290.             forces RAR to always ask for such confirmation when creating
  2291.             or extracting volumes. For example, it can be useful if you
  2292.             wish to copy new volumes to another media immediately after
  2293.             creating.
  2294.  
  2295.  
  2296.     -w<p>   Assign work directory as <p>. This switch may be used to assign
  2297.             the directory for temporary files.
  2298.  
  2299.  
  2300.     -x<f>   Exclude the specified <f> file or directory. Wildcards can be
  2301.             used in both the name and path parts of file mask. You can
  2302.             specify the switch '-x' several times to define several
  2303.             exclusion masks in the same command line.
  2304.  
  2305.             If mask contains wildcards, it applies to files in current
  2306.             directory and its subdirectories. It is not recursive without
  2307.             wildcards, so "filename" mask will exclude 'filename' file
  2308.             only in current directory when archiving or in root archive
  2309.             directory when extracting.
  2310.  
  2311.             Use "*\filename" syntax to exclude "filename" recursively
  2312.             in all directories.
  2313.  
  2314.             If you know the exact path to file, you can use "path\filename"
  2315.             syntax to exclude only this copy of "filename". If you use
  2316.             -xpath\filename syntax when unpacking an archive, "path" must be
  2317.             the path inside of archive, not the file path on the disk after
  2318.             unpacking.
  2319.  
  2320.             By default, masks containing wildcards are applied only to files.
  2321.             If you need a mask with wildcards to exclude several directories,
  2322.             use the special syntax for directory exclusion masks.
  2323.             Such masks must have the trailing path separator character
  2324.             ('\' for Windows and '/' for Unix). For example, "*tmp*\" mask
  2325.             will exclude all directories matching "*tmp*" and "*\tmp\" will
  2326.             exclude all 'tmp' directories. Since wildcards are present,
  2327.             both masks will be applied to contents of current directory
  2328.             and all its subdirectories.
  2329.  
  2330.             If you wish to exclude only one directory, specify the exact
  2331.             name of directory including the absolute or relative path
  2332.             without any wildcards. In this case you do not need to append
  2333.             the path separator to mask, which is required only for directory
  2334.             exclusion masks containing wildcards to distinguish them
  2335.             from file exclusion masks.
  2336.  
  2337.             Examples:
  2338.  
  2339.             1) rar a -r -x*.jpg -x*.avi rawfiles
  2340.  
  2341.             compress all files except *.jpg and *.avi in current directory
  2342.             and its subdirectories;
  2343.  
  2344.             2) rar a -r -x*\temp\ savec c:\*
  2345.  
  2346.             compress all files on the disk c: except 'temp' directories
  2347.             and files inside of 'temp' directories;
  2348.  
  2349.             3) rar x -x*.txt docs
  2350.  
  2351.             extract all files except *.txt from docs.rar.
  2352.  
  2353.  
  2354.     -x@<lf> Exclude files listed in the specified list file. If you use -x@
  2355.             without the list file name parameter, it will read file names
  2356.             from stdin.
  2357.  
  2358.             Example:
  2359.  
  2360.             rar a -x@exlist.txt arch *.exe
  2361.  
  2362.  
  2363.     -y      Assume Yes on all queries.
  2364.  
  2365.  
  2366.     -z[file]
  2367.             Read archive comment from file <file>.
  2368.             
  2369.             This switch can be used with any archive modification command
  2370.             to read the archive comment from file and add it to archive.
  2371.             Use with -sc switch if you need to specify the character set
  2372.             for comment text file. If <file> is not present, comment
  2373.             is read from stdin.
  2374.  
  2375.  
  2376.  
  2377.  Limitations
  2378.  ~~~~~~~~~~~
  2379.  
  2380.     Command limitations:
  2381.  
  2382.     Commands 'd','u','f','c','cf' will not operate with archive volumes.
  2383.  
  2384.     Command 'a' cannot be used to update an archive volume, only to
  2385.     create a new one.
  2386.  
  2387.  
  2388.  Exit values
  2389.  ~~~~~~~~~~~
  2390.  
  2391.     RAR exits with a zero code (0) in case of successful operation.
  2392.     Non-zero exit code indicates some kind of error:
  2393.  
  2394.     Code   Description   
  2395.  
  2396.      0     Successful operation.
  2397.      1     Non fatal error(s) occurred.
  2398.      2     A fatal error occurred.
  2399.      3     Invalid checksum. Data is damaged.
  2400.      4     Attempt to modify an archive locked by 'k' command.
  2401.      5     Write error.
  2402.      6     File open error.
  2403.      7     Wrong command line option.
  2404.      8     Not enough memory.
  2405.      9     File create error
  2406.     10     No files matching the specified mask and options were found.
  2407.     11     Wrong password.
  2408.    255     User stopped the process.
  2409.  
  2410.  
  2411.  Glossary
  2412.  ~~~~~~~~
  2413.  
  2414.     Archive      Special file containing one or more files optionally
  2415.                  compressed and/or encrypted.
  2416.  
  2417.     Compression  A method of encoding data to reduce it's size.
  2418.  
  2419.     Checksum     Value calculating for data block or file and allowing to
  2420.                  check data or file validity.
  2421.  
  2422.     SFX archive  SelF-eXtracting archive. Archive in executable format,
  2423.                  consisting of self-extracting module followed by
  2424.                  compressed data. It is enough to run such executable to
  2425.                  start extraction.
  2426.  
  2427.     Solid        An archive packed using a special compression method which
  2428.                  sees all files as one continuous data stream. Particularly
  2429.                  advantageous when packing a large number of small files.
  2430.  
  2431.     Volume       Part of a split archive. Splitting an archive to volumes
  2432.                  allows storing them on several removable disks.
  2433.                  Solid volumes must be extracted starting from first
  2434.                  volume in sequence.
  2435.  
  2436.  
  2437.  
  2438.  Copyrights
  2439.  
  2440.     (c) 1993-2016 Alexander Roshal
  2441.  
  2442.  
  2443.  
  2444.